import os.path
# 获取当前项目根路径
def get_file(data1):
    # 获取上一级的根路径
    base_path = os.path.dirname(os.path.dirname(__file__))
    # 获取Excel表格路径
    os.path.join(base_path,data1)
    return os.path.join(base_path,data1)

# 获取Excel表格路径
def file_path(get_file="data",filename='crmeb-测试用例.xls'):
    return os.path.join(os.path.dirname(os.path.dirname(__file__)),get_file,filename)

